package com.ok.sb.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * 用户表(User)实体类
 *
 * @author ok
 * @since 2021-08-16 23:06:25
 */
@AllArgsConstructor
@Builder
@Data
@NoArgsConstructor
@ApiModel(value = "User", description = "用户表")
public class User implements Serializable {
    private static final long serialVersionUID = 782300189938726627L;
    /**
     * ID
     */
    @Id
    @Column(name = "id")
    @ApiModelProperty(value = "ID")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 姓名
     */
    @Column(name = "name")
    @ApiModelProperty(value = "姓名")
    private String name;

    /**
     * 密码
     */
    @Column(name = "password")
    @ApiModelProperty(value = "密码")
    private String password;
}